﻿/** \file
* \$Rev: 183 $
* 
* \$Date: 2010-04-14 00:34:38 +0000 (Wed, 14 Apr 2010) $
*
* \$URL: http://chorus-twitter.googlecode.com/svn/trunk/src/net/UserSource.cs $
*/

using System;
using chorus.twitter;

namespace chorus.net
{
	/// <summary>
	/// A source that fetches information on a specified user.
	/// </summary>
	public class UserSource_Show : XmlSource<user>
	{
		/// <summary>The user ID parameters.</summary>
		public readonly UserIDParameters useridparms = new UserIDParameters();

		/// <summary>The path part of the source URI.</summary>
		public override string UriPath { get { return base.UriPath + "/users"; } }
		/// <summary>The type part of the source URI.</summary>
		public override string UriType { get { return "show"; } }

		/// <summary>The constructor.</summary>
		public UserSource_Show() { useridparms.Populate(qparams); }
	}

	/// <summary>
	/// A source that fetches information on an authenticating user.
	/// </summary>
	public class AccountSource : XmlSource<Account>
	{
		/// <summary>The path part of the source URI.</summary>
		public override string UriPath { get { return base.UriPath + "/account"; } }
		/// <summary>The type part of the source URI.</summary>
		public override string UriType { get { return "verify_credentials"; } }
	}
}
